package com.buka.ad.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMqConfig {
    //队列
    public static final String AD_QUEUE = "ad_queue";

    @Bean(AD_QUEUE)
    public Queue AD_QUEUE(){
        return new Queue(AD_QUEUE);
    }
}
